package org.lsb.app_back.vo;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ResultVo   implements Serializable {
    private Integer code;//2000 5000
    private String mess;  //消息提醒
    private Object data;//携带的数据


    public static  ResultVo success(String mess,Object data){
        return new ResultVo(2000,mess,data);
    }
    public static  ResultVo error(String mess){
        return new ResultVo(5000,mess,null);
    }
}
